package com.xbongbong.paas.service.workflow.setting.impl;

import com.xbongbong.paas.pojo.workflow.WorkflowNodeTreePojo;
import com.xbongbong.paas.pojo.workflow.nodes.vo.WorkflowNodeGetVO;
import com.xbongbong.paas.pojo.workflow.settings.WorkflowGetPojo;
import com.xbongbong.paas.pojo.workflow.settings.vo.WorkflowEnableVO;
import com.xbongbong.paas.service.workflow.setting.AbstractWorkflowNodeSettings;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.workflow.domain.entity.WorkflowNodeEntity;
import com.xbongbong.workflow.domain.entity.ext.WorkflowNodeEntityExt;
import com.xbongbong.workflow.enums.WorkflowNodeTypeEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author 吴峰
 * @date 2021/05/21 14:35
 */
@Service("workflowNodeConditionBlockSettings")
public class WorkflowNodeConditionBlockSettings extends AbstractWorkflowNodeSettings {



    private static final Logger LOGGER = LoggerFactory.getLogger(WorkflowNodeConditionBlockSettings.class);


    @Override
    public Integer type() {
        return WorkflowNodeTypeEnum.CONDITION_BLOCK_NODE.getType();
    }

    @Override
    public WorkflowNodeTreePojo getContent(WorkflowNodeEntity workflowNodeEntity, WorkflowGetPojo workflowGetPojo) throws XbbException {

        return new WorkflowNodeTreePojo();
    }

    @Override
    public WorkflowNodeGetVO get(WorkflowNodeEntity workflowNodeEntity) throws XbbException {
        return new WorkflowNodeGetVO();
    }

    @Override
    public WorkflowEnableVO check(WorkflowNodeEntity workflowNodeEntity, Map<Long, WorkflowNodeEntity> nodeMap, WorkflowGetPojo workflowGetPojo) throws XbbException {
        return new WorkflowEnableVO();
    }

    @Override
    public void replaceWorkflowNodeId(WorkflowNodeEntityExt item, Map<Long, Long> workflowNodeMap) throws XbbException {

    }
}

